home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
archive
/
bat4pkz.arj
/
ZIPPY.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-02-14
|
2KB
|
106 lines
@echo off
cls
rem zippy.bat
if "%1" == "A" goto azip
if "%1" == "a" goto azip
if "%1" == "B" goto bzip
if "%1" == "b" goto bzip
if "%1" == "" goto help
if "%2" == "" goto message
if "%3" == "" goto message
cd %1:\%2
if not exist %1:\%2\nul goto error
if exist %1:\%2
%1:
cd %1:\%2
echo.
echo.
echo.
echo The directory %1:\%2 is found.
echo.
echo.
echo.
choice /c:cq /n Press C for Continue or Q to Quit?
if errorlevel 2 goto exit
if errorlevel 1 goto doit
:doit
cls
c:\pkzip\pkzip -ex -rp c:\zipit\%3
goto end
:error
cls
echo.
echo.
echo.
echo The directory you specified does not exist...
echo Check the directory name and try again...
goto exit
:azip
a:
echo.
echo The floppy drive A is found...
echo.
echo.
choice /c:cq /n Press C for Continue or Q to Quit?
if errorlevel 2 goto exit
if errorlevel 1 goto doa
:doa
cls
c:
c:\pkzip\pkzip -ex -rp -$a %2 a:\*.*
goto end
:bzip
b:
echo.
echo The floppy drive B is found...
echo.
echo.
choice /c:cq /n Press C for Continue or Q to Quit?
if errorlevel 2 goto exit
if errorlevel 1 goto dob
:dob
cls
c:
c:\pkzip\pkzip -ex -rp -$b %2 b:\*.*
goto end
:message
echo.
echo You must specify a directory name after the drive letter,
echo and a zip file name after the directory name...
goto exit
:help
echo.
echo.
echo Usage: zippy.bat (drive) (directory) (zip file name)
echo.
echo Example: zippy c windows win
echo.
echo This would zip up the Windows directory in C-drive with all it's
echo Subdirectories and create the win.zip file...
echo.
echo Notice not to use any colons or backlashes!
echo.
echo.
echo Usage: To zip up the A or B Floppy drive
echo.
echo zippy.bat (drive) (zip file name)
echo.
echo Example: zippy a try
echo.
echo This would zip up the A-Floppy with all it's Subdirectories,
echo store the volume label of the disk and create the try.zip file.
goto exit
:end
cls
echo.
echo.
echo.
echo ╔═══════════════════════════╗
echo ║ DDDD OOO N N EEEE ║
echo ║ D D O O NN N E ║
echo ║ D D O O N N N EEE ║
echo ║ D D O O N NN E ║
echo ║ DDDD OOO N N EEEE ║
echo ╚═══════════════════════════╝
:exit